<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<script type='text/javascript'>
           var result = '${result}';
	       if(result =='success'){
	          alert("登录成功");
	          window.location = "/sm/controller/typeItem/list.html";
	       }
	       if(result=='faild'){
	          alert("用户名或密码不对！");
	          window.location = "/sm/index.jsp";
	       }
	       if(result=='loginOutSuccess'){
	          alert("退出成功");
	          window.location = "/sm/index.jsp";
	       }
	       if(result=='reLogin'){
	          alert("请重新登录");
	          window.location = "/sm/index.jsp";
	       }
	       if(result=="refreshParent"){
	          window.opener.location.reload();
	          window.close();
	       }

	       
	   
</script>